package main

import (
	"github.com/gin-gonic/gin"
	"house-property/controller"
)

func CollectRoute(r *gin.Engine) *gin.Engine{
	r.POST("system/apis/login",controller.Login)
	r.POST("api/auth/apply",controller.House)
	r.GET("api/auth/standardscore",controller.Standard)
	r.DELETE("api/auth/destanard",controller.Deletesta)
	r.POST("api/auth/modifystand",controller.Modifysta)
	r.POST("api/auth/addstand",controller.Modifysta)
	r.GET("api/auth/property",controller.Property)
	r.DELETE("api/auth/deproperty",controller.Deletepro)
	r.POST("api/auth/modiproperty",controller.Modifypro)
	r.POST("api/auth/adproperty",controller.Modifypro)
	r.GET("api/auth/findsmsg",controller.Findmsg)
	r.POST("api/auth/separte",controller.Separate)
	r.POST("api/auth/tuiapply",controller.Checkout)
	r.POST("api/auth/reapply",controller.Redistributehou)
	r.GET("api/auth/gethouse",controller.Gethouse)
	return r
}